//
// Created by fairy on 2025/4/26 22:47.
//
#include "key.h"

#include <key.h>

// 变量
// 静态成员初始化
namespace bsp
{
    // 静态成员初始化
    volatile Key::State::Type Key::m_state = State::IDLE;
    volatile uint32_t Key::m_last_edge_time = 0;
    volatile Key::Event::Type Key::m_pending_event = Event::NONE;
    volatile uint16_t Key::m_key_code = 0;

}



extern "C"
{
void interrupt EXINT2_ISR()
{
  bsp::Key::handleInterrupt();
}
}
